-- GENERATED SPELL FOR [Cultist Corrupter] --


function spell0_31738(pUnit, Event) --@Bone Armor,n/a--
pUnit:FullCastSpellOnTarget(50324,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31738', 600, 1)
end

function spell1_31738(pUnit, Event) --@Sharpened Bone,n/a--
pUnit:FullCastSpellOnTarget(50323,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31738', 2000, 1)
end

function Sorts_31738(pUnit, Event)
local choix_sorts_31738 = math.random(0, 1)
if choix_sorts_31738 == 0 then
pUnit:RegisterEvent('spell0_31738', 1, 1)
end
if choix_sorts_31738 == 1 then
pUnit:RegisterEvent('spell1_31738', 1, 1)
end
end

function mob31738_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31738', math.random(1500, 3000), 1)
end

function mob31738_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31738_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31738_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31738, 1, 'mob31738_Action')
RegisterUnitEvent(31738, 2, 'mob31738_Leave')
RegisterUnitEvent(31738, 3, 'mob31738_Kill')
RegisterUnitEvent(31738, 4, 'mob31738_Die')
